package cn.cdzdjd.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("v_user")
public class UserSession implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8337582053815590014L;
	@TableId
	private Long id;
	private String anonymousOpenid;

	private String sessionKey;

	private String openid;

	private String unionid;

	private String provider;
	@TableField(fill = FieldFill.INSERT)
	private Date createDate;

	private boolean enabled;
	private String nickName;
	private String avatarUrl;
	private String ip;
}
